package com.wodsy.phoenix.dataobject.goodsc.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * TbGoodsMaterial entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_goods_material", catalog = "goodsc")
public class GoodsMaterial implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private String material;		//商品材质
//	private Integer goodsId;		//商品id

	// Constructors

	/** default constructor */
	public GoodsMaterial() {
	}

	/** full constructor , Integer goodsId*/
	public GoodsMaterial(String material) {
		this.material = material;
//		this.goodsId = goodsId;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "material", nullable = false, length = 50)
	public String getMaterial() {
		return this.material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}

//	@Column(name = "goods_id", nullable = false)
//	public Integer getGoodsId() {
//		return this.goodsId;
//	}
//
//	public void setGoodsId(Integer goodsId) {
//		this.goodsId = goodsId;
//	}

}